package com.situ.skymallcartapi.dao;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import com.situ.model.Cart;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface CartMapper extends BaseMapper<Cart> {
    default List<Cart> findBy(Cart cart){
        LambdaQueryWrapper<Cart> qw= Wrappers.lambdaQuery(cart);
        return selectList(qw);

    }
}
